package com.zhihuichongcheng.application.bean.mine;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by 3water on 2016/10/24.
 */

public class UserBean implements Parcelable {
    public static final Creator<UserBean> CREATOR = new Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel in) {
            return new UserBean(in);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };
    private String beijinMobile;
    private String tianjinMobile;
    private String userId;
    private String roomId;
    private String userName;
    private String logoUrl;
    private String userPassword;
    private String token;
    private DepInfo dept;
    private PositionInfo position;
    private List<UserBean> friends;
    private String easemobNumber;
    private String minPhone;
    private String maxPhone;
    private String remark;

    public UserBean() {
    }

    protected UserBean(Parcel in) {
        beijinMobile = in.readString();
        tianjinMobile = in.readString();
        userId = in.readString();
        roomId = in.readString();
        userName = in.readString();
        logoUrl = in.readString();
        userPassword = in.readString();
        token = in.readString();
        friends = in.createTypedArrayList(UserBean.CREATOR);
        easemobNumber = in.readString();
        minPhone = in.readString();
        maxPhone = in.readString();
        remark = in.readString();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getMinPhone() {
        return minPhone;
    }

    public void setMinPhone(String minPhone) {
        this.minPhone = minPhone;
    }

    public String getMaxPhone() {
        return maxPhone;
    }

    public void setMaxPhone(String maxPhone) {
        this.maxPhone = maxPhone;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public DepInfo getDept() {
        return dept;
    }

    public void setDept(DepInfo dept) {
        this.dept = dept;
    }

    public PositionInfo getPosition() {
        return position;
    }

    public void setPosition(PositionInfo position) {
        this.position = position;
    }

    public String getBeijinMobile() {
        return beijinMobile;
    }

    public void setBeijinMobile(String beijinMobile) {
        this.beijinMobile = beijinMobile;
    }

    public String getTianjinMobile() {
        return tianjinMobile;
    }

    public void setTianjinMobile(String tianjinMobile) {
        this.tianjinMobile = tianjinMobile;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public List<UserBean> getFriends() {
        return friends;
    }

    public void setFriends(List<UserBean> friends) {
        this.friends = friends;
    }

    public String getEasemobNumber() {
        return easemobNumber;
    }

    public void setEasemobNumber(String easemobNumber) {
        this.easemobNumber = easemobNumber;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(beijinMobile);
        dest.writeString(tianjinMobile);
        dest.writeString(userId);
        dest.writeString(roomId);
        dest.writeString(userName);
        dest.writeString(logoUrl);
        dest.writeString(userPassword);
        dest.writeString(token);
        dest.writeTypedList(friends);
        dest.writeString(easemobNumber);
        dest.writeString(minPhone);
        dest.writeString(maxPhone);
        dest.writeString(remark);
    }


    @Override
    public String toString() {
        return "UserBean{" +
                "beijinMobile='" + beijinMobile + '\'' +
                ", tianjinMobile='" + tianjinMobile + '\'' +
                ", userId='" + userId + '\'' +
                ", roomId='" + roomId + '\'' +
                ", userName='" + userName + '\'' +
                ", logoUrl='" + logoUrl + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", token='" + token + '\'' +
                ", dept=" + dept +
                ", position=" + position +
                ", friends=" + friends +
                ", easemobNumber='" + easemobNumber + '\'' +
                ", minPhone='" + minPhone + '\'' +
                ", maxPhone='" + maxPhone + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
